home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
4_0
/
DVIM72-M
/
DBGOPEN.C
< prev
next >
Wrap
Text File
|
1990-04-14
|
930b
|
33 lines
/* -*-C-*- dbgopen.h */
/*-->dbgopen*/
/**********************************************************************/
/****************************** dbgopen *******************************/
/**********************************************************************/
#include "dvihead.h"
#include "commands.h"
#include "gendefs.h"
#include "gblprocs.h"
#include "egblvars.h"
#include "m72.h"
/* This used to be a long in-line macro, but some compilers could not */
/* handle it. */
void
dbgopen(fp, fname, openmode)
FILE* fp; /* file pointer */
char* fname; /* file name */
char* openmode; /* open mode flags */
{
if (DBGOPT(DBG_OKAY_OPEN) && (fp != (FILE *)NULL))
{
(void)fprintf(stderr,"%%Open [%s] mode [%s]--[OK]",fname,openmode);
NEWLINE(stderr);
}
if (DBGOPT(DBG_FAIL_OPEN) && (fp == (FILE *)NULL))
{
(void)fprintf(stderr,"%%Open [%s] mode [%s]--[FAILED]",fname,openmode);
NEWLINE(stderr);
}
}